'Declaration Public Shared Sub CopyProperties( _ ByVal source As Object, _ ByVal destination As Object, _ ByVal type As Type, _ ByVal excludedPropertyNames() As String _ )
'Usage Dim source As Object Dim destination As Object Dim type As Type Dim excludedPropertyNames() As String ThemedControl.CopyProperties(source, destination, type, excludedPropertyNames)
public static void CopyProperties( object source, object destination, Type type, string[] excludedPropertyNames )
Parameters
- source
- A reference to the System.Windows.Forms.Control to clone.
- destination
- A reference to the cloned control.
- type
- The source and destination controls' type.
- excludedPropertyNames
- A string array containing the names of the properties whose values are to be excluded from the cloning process.